package com.ac.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

/* `id`,
  `principal`,
  `supplier`,
  `brand`,
  `building_id`,
  `status`,
  `add_time`*/
public class Device {

    private Long id;

    private String principal;

    private String supplier;

    private String brand;

    private Long buildingId;

    private String buildingName;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date addTime;

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
}
